//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.dk.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dk.entity.TCar;
import com.dk.mapper.TCarMapper;
import com.dk.service.ITCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TCarServiceImpl extends ServiceImpl<TCarMapper, TCar> implements ITCarService {
    @Autowired
    private TCarMapper tCarMapper;

    //增加车辆信息
    public Boolean insertCar(TCar tCar) {
        int i = this.tCarMapper.insert(tCar);
        return i > 0 ? true : false;
    }

    //查询所有二手车信息
    @Override
    public List<TCar> selectCar() {
        return tCarMapper.selectList(null);
    }
}
